package com.ktwlsoft.archivemanage.domain.dao.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;

import java.io.Serializable;
import java.util.Date;

 /**
  * copy_to--抄送
  *
  * @author zhuhe on 2020-04-29 14:56:33
  * @version 1.0
  */
@ApiModel("copy_to--抄送-CopyTo")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CopyTo implements Serializable{
	
    /**主键**/
    @ApiModelProperty("主键")
    private Long id;

    /**业务id**/
    @ApiModelProperty("业务id")
    private Long businessId;

    /**业务类型**/
    @ApiModelProperty("业务类型")
    private String businessType;

    /**消息id**/
    @ApiModelProperty("消息id")
    private Long messageId;

    /**抄送人id**/
    @ApiModelProperty("抄送人id")
    private Long copyToId;

    /**抄送人姓名**/
    @ApiModelProperty("抄送人姓名")
    @Size(max = 30, message = "抄送人姓名参数超长")
    private String copyToName;

    /**创建人**/
    @ApiModelProperty("创建人")
    @Size(max = 30, message = "创建人参数超长")
    private String createName;

    /**创建人id**/
    @ApiModelProperty("创建人id")
    private Long createId;

    /**创建时间**/
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**更新人**/
    @ApiModelProperty("更新人")
    @Size(max = 30, message = "更新人参数超长")
    private String updateName;

    /**更新人id**/
    @ApiModelProperty("更新人id")
    private Long updateId;

    /**更新时间**/
    @ApiModelProperty("更新时间")
    private Date updateTime;

     /**类型:1.新增,2.删除**/
     @ApiModelProperty("类型:1.新增,2.删除")
    private transient Integer type;
}
